import { post } from '@/utils/request'

// 小票绑定Printer
// 新增 保存
export const addBillBindPrinterEquipment = p => post(`/service-system/b/sysBillBindPrinterEquipment/v1/add`, p)
// 新增 修改
export const modifyBillBindPrinterEquipment = p => post(`/service-system/b/sysBillBindPrinterEquipment/v1/modify`, p)
// 详情
export const viewBillBindPrinterEquipment = p => post(`/service-system/b/sysBillBindPrinterEquipment/v1/view/${p}`, p)
// 列表
export const listBillBindPrinterEquipment = p => post(`/service-system/b/sysBillBindPrinterEquipment/v1/list`, p)
// 删除
export const delBillBindPrinterEquipment = p => post(`/service-system/b/sysBillBindPrinterEquipment/v1/del/${p}`, p)
// 状态
export const changeBillBindPrinterEquipmentStatus = p => post(`/service-system/b/sysBillBindPrinterEquipment/v1/changeStatus/${p.id}/${p.status}`, p)

// 小票模板
// 新增 保存
export const addPrintTemplate = p => post(`/service-system/b/sysPrintTemplate/v1/add`, p)
// 新增 修改
export const modifyPrintTemplate = p => post(`/service-system/b/sysPrintTemplate/v1/modify`, p)
// 详情
export const viewPrintTemplate = p => post(`/service-system/b/sysPrintTemplate/v1/view/${p}`, p)
// 列表
export const listPrintTemplate = p => post(`/service-system/b/sysPrintTemplate/v1/list`, p)
// 删除
export const delPrintTemplate = p => post(`/service-system/b/sysPrintTemplate/v1/del/${p}`, p)
// 状态
export const changePrintTemplateStatus = p => post(`/service-system/b/sysPrintTemplate/v1/changeStatus/${p.id}/${p.status}`, p)
